
<%@ page import="com.plan.Workplan" %>

<div id="list-workplan" class="content scaffold-list" role="main">
	<table>
		<thead>
			<tr>
				<th><g:message code="workplan.planTitle.label" default="Plan Title" /></th>
				<th><g:message code="workplan.workContent.label" default="Work Content" /></th>
				<th><g:message code="workplan.worker.label" default="Worker" /></th>
				<th><g:message code="workplan.workResult.label" default="Work Result" /></th>
				<th><g:message code="workplan.lastUpdated.label" default="Last Updated" /></th>
			</tr>
		</thead>
		<tbody>
		<g:each in="${workplanInstanceList}" status="i" var="workplanInstance">
			<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
				<td><g:link controller="workplan" action="show" id="${workplanInstance.id}">${fieldValue(bean: workplanInstance, field: "planTitle")}</g:link></td>
				<td>${fieldValue(bean: workplanInstance, field: "workContent")}</td>
				<td>${fieldValue(bean: workplanInstance, field: "worker")}</td>
				<td>${fieldValue(bean: workplanInstance, field: "workResult")}</td>
				<td><g:formatDate date="${workplanInstance.lastUpdated}" format="yyyy-MM-dd" /></td>
				
			</tr>
		</g:each>
		</tbody>
	</table>
</div>
